package com.jemmyee.pizza.entity;
// default package

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.GenericGenerator;


/**
 * CostUnlock entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="cost_unlock"
    ,catalog="milestone.dbo"
)

public class CostUnlock  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private String customCode;
     private String customName;
     private String address;
     private String tel;
     private Float price;
     private String remark;
     private String unlocker;
     private Date unlockDate;


    // Constructors

    /** default constructor */
    public CostUnlock() {
    }

    
    /** full constructor */
    public CostUnlock(String customCode, String customName, String address, String tel, Float price, String remark, String unlocker, Date unlockDate) {
        this.customCode = customCode;
        this.customName = customName;
        this.address = address;
        this.tel = tel;
        this.price = price;
        this.remark = remark;
        this.unlocker = unlocker;
        this.unlockDate = unlockDate;
    }

   
    // Property accessors
    @GenericGenerator(name="generator", strategy="increment")@Id @GeneratedValue(generator="generator")
    
    @Column(name="id", unique=true, nullable=false)

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    @Column(name="custom_code", length=20)

    public String getCustomCode() {
        return this.customCode;
    }
    
    public void setCustomCode(String customCode) {
        this.customCode = customCode;
    }
    
    @Column(name="custom_name", length=50)

    public String getCustomName() {
        return this.customName;
    }
    
    public void setCustomName(String customName) {
        this.customName = customName;
    }
    
    @Column(name="address", length=500)

    public String getAddress() {
        return this.address;
    }
    
    public void setAddress(String address) {
        this.address = address;
    }
    
    @Column(name="tel", length=20)

    public String getTel() {
        return this.tel;
    }
    
    public void setTel(String tel) {
        this.tel = tel;
    }
    
    @Column(name="price", precision=12, scale=0)

    public Float getPrice() {
        return this.price;
    }
    
    public void setPrice(Float price) {
        this.price = price;
    }
    
    @Column(name="remark", length=200)

    public String getRemark() {
        return this.remark;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }
    
    @Column(name="unlocker", length=50)

    public String getUnlocker() {
        return this.unlocker;
    }
    
    public void setUnlocker(String unlocker) {
        this.unlocker = unlocker;
    }
@Temporal(TemporalType.DATE)
    @Column(name="unlock_date", length=0)

    public Date getUnlockDate() {
        return this.unlockDate;
    }
    
    public void setUnlockDate(Date unlockDate) {
        this.unlockDate = unlockDate;
    }
   








}